<!DOCTYPE HTML>
<html lang="en" >
    
    <head>
        
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>form | Introduction</title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../html/type.html" />
    
    
    <link rel="prev" href="../html/table.html" />
    

        
    </head>
    <body>
        
        
    <div class="book"
        data-level="1.3"
        data-chapter-title="form"
        data-filepath="html/forms.md"
        data-basepath=".."
        data-revision="Fri Sep 01 2017 14:19:43 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="html/HTML.html">
            
                
                    <a href="../html/HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        html
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="html/html标签.html">
            
                
                    <a href="../html/html标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        hmtl标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="html/table.html">
            
                
                    <a href="../html/table.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        table
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.3" data-path="html/forms.html">
            
                
                    <a href="../html/forms.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        form
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="html/type.html">
            
                
                    <a href="../html/type.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        type
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="html/实体字符.html">
            
                
                    <a href="../html/实体字符.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        实体字符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="html/图像.html">
            
                
                    <a href="../html/图像.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.6.</b>
                        
                        图像
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="html/icon.iframe.html">
            
                
                    <a href="../html/icon.iframe.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.7.</b>
                        
                        icon iiframe base
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="html/H5的语义化标签.html">
            
                
                    <a href="../html/H5的语义化标签.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.8.</b>
                        
                        H5的语义化标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="html/图片的热区域.html">
            
                
                    <a href="../html/图片的热区域.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.9.</b>
                        
                        图片热区
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="html/锚点.html">
            
                
                    <a href="../html/锚点.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.10.</b>
                        
                        锚点
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="html/video.html">
            
                
                    <a href="../html/video.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.11.</b>
                        
                        video
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.12" data-path="html/audio.html">
            
                
                    <a href="../html/audio.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.12.</b>
                        
                        audio
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="CSS/css.html">
            
                
                    <a href="../CSS/css.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        css
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="CSS/CSS选择器.html">
            
                
                    <a href="../CSS/CSS选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        css选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="CSS/关系选择器.html">
            
                
                    <a href="../CSS/关系选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="CSS/群组选择器.html">
            
                
                    <a href="../CSS/群组选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="CSS/通配选择器.html">
            
                
                    <a href="../CSS/通配选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.5" data-path="CSS/元素选择器.html">
            
                
                    <a href="../CSS/元素选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.5.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.6" data-path="CSS/元素样式.html">
            
                
                    <a href="../CSS/元素样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.6.</b>
                        
                        元素样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.7" data-path="CSS/伪类选择器.html">
            
                
                    <a href="../CSS/伪类选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.7.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.8" data-path="CSS/伪对象选择器.html">
            
                
                    <a href="../CSS/伪对象选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.8.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.9" data-path="CSS/属性选择器.html">
            
                
                    <a href="../CSS/属性选择器.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.9.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.10" data-path="CSS/font.html">
            
                
                    <a href="../CSS/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.10.</b>
                        
                        字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.11" data-path="CSS/嵌入字体.html">
            
                
                    <a href="../CSS/嵌入字体.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.11.</b>
                        
                        嵌入字体
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.12" data-path="CSS/边框样式.html">
            
                
                    <a href="../CSS/边框样式.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.12.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.13" data-path="CSS/内边距.html">
            
                
                    <a href="../CSS/内边距.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.13.</b>
                        
                        内边距
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.14" data-path="CSS/外边距.html">
            
                
                    <a href="../CSS/外边距.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.14.</b>
                        
                        外边距
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.15" data-path="CSS/圆角效果.html">
            
                
                    <a href="../CSS/圆角效果.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.15.</b>
                        
                        圆角效果
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.16" data-path="CSS/透明度.html">
            
                
                    <a href="../CSS/透明度.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.16.</b>
                        
                        透明度
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.17" data-path="CSS/段落控制.html">
            
                
                    <a href="../CSS/段落控制.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.17.</b>
                        
                        段落控制
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.18" data-path="CSS/三角形.html">
            
                
                    <a href="../CSS/三角形.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.18.</b>
                        
                        三角形
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.19" data-path="dingwei/绝对定位.html">
            
                
                    <a href="../dingwei/绝对定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.19.</b>
                        
                        绝对定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.20" data-path="dingwei/相对定位.html">
            
                
                    <a href="../dingwei/相对定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.20.</b>
                        
                        相对定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.21" data-path="dingwei/固定定位.html">
            
                
                    <a href="../dingwei/固定定位.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.21.</b>
                        
                        固定定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.22" data-path="CSS/mediatype.html">
            
                
                    <a href="../CSS/mediatype.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.22.</b>
                        
                        媒体查询
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../" >Introduction</a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h3 id="html&#x4E4B;&#x8868;&#x5355;&#x7684;&#x4F7F;&#x7528;">HTML&#x4E4B;&#x8868;&#x5355;&#x7684;&#x4F7F;&#x7528;</h3>
<h2 id="form">form</h2>
<ul>
<li>1.&#x63D0;&#x4EA4;&#x7684;&#x5185;&#x5BB9;&#x5305;&#x62EC;&#x5728;form&#x6807;&#x7B7E;&#x91CC;&#x9762;</li>
<li>2.&#x63D0;&#x4EA4;&#x65B9;&#x6CD5;method&#x548C;&#x63D0;&#x4EA4;&#x5730;&#x5740;action</li>
</ul>
<h3 id="method">method</h3>
<pre><code>&#x6709;get&#x548C;post&#x4E24;&#x79CD;&#x5F62;&#x5F0F;
get&#xFF1A;&#x6570;&#x636E;&#x91CF;&#x5C0F;&#xFF0C;&#x5B89;&#x5168;&#x6027;&#x4F4E;&#xFF0C;&#x5728;url&#x4E0A;&#x663E;&#x793A;&#x6570;&#x636E;&#xFF0C;&#x88F8;&#x9732;&#x5728;&#x6D4F;&#x89C8;&#x5668;&#x7684;&#x5730;&#x5740;&#x4E0A;
post&#xFF1A;&#x6570;&#x636E;&#x91CF;&#x5927;&#xFF0C;&#x5B89;&#x5168;&#x6027;&#x9AD8;&#xFF0C;&#x4E0D;&#x5728;rul&#x4E0A;&#x663E;&#x793A;&#x6570;&#x636E;&#xFF0C;&#x6570;&#x636E;&#x5B58;&#x653E;&#x5728;&#x8BF7;&#x6C42;&#x5934;&#x91CC;&#x4F20;&#x8F93;
</code></pre><h3 id="input">input</h3>
<table>
<thead>
<tr>
<th>&#x4EE3;&#x7801;</th>
<th>&#x7C7B;&#x578B;</th>
</tr>
</thead>
<tbody>
<tr>
<td>text</td>
<td>&#x666E;&#x901A;&#x6587;&#x672C;</td>
</tr>
<tr>
<td>password</td>
<td>&#x5BC6;&#x7801;(&#x8F93;&#x5165;&#x4E0D;&#x53EF;&#x89C1;)</td>
</tr>
<tr>
<td>number</td>
<td>&#x6570;&#x5B57;(&#x8F93;&#x5165;&#x5185;&#x5BB9;&#x5FC5;&#x987B;&#x662F;&#x6570;&#x5B57;)</td>
</tr>
<tr>
<td>radio</td>
<td>&#x5355;&#x9009;</td>
</tr>
<tr>
<td>checkbox</td>
<td>&#x591A;&#x9009;</td>
</tr>
<tr>
<td>button</td>
<td>&#x6309;&#x94AE;</td>
</tr>
</tbody>
</table>
<p>   radio&amp;CheckBox
   &#x4F7F;&#x7528;label&#x6807;&#x7B7E;&#x8FDB;&#x884C;&#x7EC4;&#x5408;&#xFF0C;label&#x7684;for&#x5C5E;&#x6027;&#x4E0E;input&#x7684;id&#x76F8;&#x5BF9;&#x5E94;&#xFF0C;&#x5C31;&#x80FD;&#x540C;&#x6B65;&#x9009;&#x62E9;&#x4E8B;&#x4EF6;</p>
<h3 id="select">select</h3>
<ul>
<li>option &#x9009;&#x9879;</li>
<li>optgroup &#x9009;&#x9879;&#x7EC4;</li>
</ul>
<blockquote>
<p>select&#x7684;&#x6700;&#x540E;&#x7ED3;&#x679C;&#x5C31;&#x662F;&#x9009;&#x4E2D;&#x7684;option&#x7684;value</p>
</blockquote>
<h3 id="&#x6587;&#x672C;&#x57DF;-textarea">&#x6587;&#x672C;&#x57DF; textarea</h3>
<pre><code>&#x4E0E;text&#x7C7B;&#x578B;&#x7684;&#x7528;&#x6CD5;&#x76F8;&#x4F3C;&#xFF0C;&#x53EF;&#x4EE5;&#x901A;&#x8FC7;rows&#x548C;cols&#x5C5E;&#x6027;&#x8BBE;&#x7F6E;&#x5927;&#x5C0F;
</code></pre><pre><code>    &#x4E0D;&#x53EF;&#x62C9;&#x4F38;&#x7684;&#x65F6;&#x5019;&#xFF1A;
            &lt;style type=&quot;text/css&quot;&gt;
                textarea{
                    /*&#x5927;&#x5C0F;&#x53D8;&#x5F62;&#xFF1A;&#x4E0D;&#x53EF;&#x7528;*/
                    resize: none;
                }
            &lt;/style&gt;
</code></pre><h3 id="type&#x540E;&#x9762;&#x7684;&#x5C5E;&#x6027;&#x610F;&#x601D;">type&#x540E;&#x9762;&#x7684;&#x5C5E;&#x6027;&#x610F;&#x601D;</h3>
<p>type        input&#x5143;&#x7D20;&#x7C7B;&#x578B;            </p>
<ul>
<li>name        input &#x5143;&#x7D20;&#x7684;&#x540D;&#x79F0;</li>
<li>value        input &#x5143;&#x7D20;&#x7684;&#x503C;</li>
<li>size        input &#x5143;&#x7D20;&#x7684;&#x5BBD;&#x5EA6;</li>
<li>readonly        &#x662F;&#x5426;&#x53EA;&#x8BFB;</li>
<li>maxlength    &#x8F93;&#x5165;&#x5B57;&#x7B26;&#x7684;&#x6700;&#x5927;&#x957F;&#x5EA6;</li>
<li>disabled        &#x662F;&#x5426;&#x7981;&#x7528;</li>
<li>placeholder    &#x63D0;&#x793A;&#x8BED;<h3 id="&#x5E38;&#x7528;&#x7684;typelable">&#x5E38;&#x7528;&#x7684;typelable</h3>
</li>
<li>butto  &#x6309;&#x94AE;</li>
<li>subm &#x63D0;&#x4EA4;</li>
<li>reset &#x91CD;&#x5199;</li>
<li>image &#x56FE;&#x7247;&#x6309;&#x94AE;</li>
<li>&#x9690;&#x85CF;&#x57DF; hidden<pre><code> &lt;input type=&quot;hidden&quot; name=&quot;uid&quot; value=&quot;10&quot;/&gt;
</code></pre><blockquote>
<p>&#x8FD8;&#x4F1A;&#x6309;&#x7167;&#x6B63;&#x5E38;&#x6570;&#x636E;&#x7684;&#x63D0;&#x4EA4;&#xFF0C;&#x53EA;&#x4E0D;&#x8FC7;&#x4E0D;&#x9700;&#x8981;&#x7528;&#x6237;&#x7684;&#x53C2;&#x4E0E;&#x4FEE;&#x6539;&#x800C;&#x5DF2;</p>
</blockquote>
</li>
</ul>
<p>accept:&#x80FD;&#x9650;&#x5236;imag&#x7684;&#x56FE;&#x7247;&#x7C7B;&#x578B;</p>
<ul>
<li>multiple&#xFF1A;&#x53EF;&#x4EE5;&#x591A;&#x9009;</li>
<li>&#x5728;&#x505A;&#x8868;&#x5355;&#x7684;&#x65F6;&#x5019;&#xFF0C;&#x53EA;&#x8981;&#x4E0D;&#x662F;&#x7528;&#x6237;&#x9884;&#x8BBE;&#x7684;&#x63A7;&#x4EF6;&#x90FD;&#x8981;&#x8BBE;&#x4E2A;value&#x503C;<h3 id="&#x5757;&#x7EA7;&#x3001;-&#x884C;&#x5185;&#x5143;&#x7D20;&#x548C;&#x884C;&#x5185;&#x5757;&#x7EA7;&#x5143;&#x7D20;">&#x5757;&#x7EA7;&#x3001; &#x884C;&#x5185;&#x5143;&#x7D20;&#x548C;&#x884C;&#x5185;&#x5757;&#x7EA7;&#x5143;&#x7D20;</h3>
</li>
<li>&#x5757;&#x7EA7;&#x5143;&#x7D20;&#x809A;&#x5B50;&#x5360;&#x4E00;&#x884C;&#xFF0C;&#x4E0D;&#x613F;&#x610F;&#x8DDF;&#x5176;&#x4ED6;&#x5143;&#x7D20;&#x5171;&#x5904;&#x4E00;&#x884C;&#xFF0C;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x5BBD;&#x9AD8;&#x548C;&#x8BBE;&#x7F6E;&#x5185;&#x5916;&#x8FB9;&#x8DDD;</li>
<li>&#x884C;&#x5185;&#x5143;&#x7D20;&#x53EA;&#x5360;&#x672C;&#x8EAB;&#x5927;&#x5C0F;&#xFF0C;&#x53EF;&#x4EE5;&#x8DDF;&#x5176;&#x4ED6;&#x975E;&#x5757;&#x7EA7;&#x5143;&#x7D20;&#x5171;&#x5904;&#x4E00;&#x884C;&#xFF0C;&#x4F46;&#x5E76;&#x4E0D;&#x80FD;&#x8BBE;&#x7F6E;&#x5BBD;&#x9AD8;(&#x9664;&#x4E86;&#x8FD9;&#x51E0;&#x4F4D;<strong>&#x66FF;&#x6362;&#x5143;&#x7D20;</strong>&#xFF1A;img&#x3001;audio&#x3001;video&#x3001;canvas&#x7B49;)&#x3002;</li>
<li>&#x884C;&#x5185;&#x5757;&#x7EA7;&#x5143;&#x7D20;&#xFF0C;&#x96C6;&#x5408;&#x4E86;&#x4E24;&#x8005;&#x7684;&#x7279;&#x70B9;&#xFF0C;&#x65E2;&#x53EF;&#x4EE5;&#x8BBE;&#x7F6E;&#x5BBD;&#x9AD8;&#x548C;&#x5185;&#x5916;&#x8FB9;&#x8DDD;&#xFF0C;&#x8FD8;&#x53EF;&#x4EE5;&#x8DDF;&#x5176;&#x4ED6;&#x975E;&#x5757;&#x7EA7;&#x5143;&#x7D20;&#x5171;&#x5904;&#x4E00;&#x884C;&#x3002;</li>
</ul>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../html/table.html" class="navigation navigation-prev " aria-label="Previous page: table"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../html/type.html" class="navigation navigation-next " aria-label="Next page: type"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../gitbook/app.js"></script>

    
    <script src="../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

    
    <script src="../gitbook/plugins/gitbook-plugin-livereload/plugin.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"livereload":{}};
    gitbook.start(config);
});
</script>

        
    </body>
    
</html>
